package com.djhu.freepartner.core;

public class RestRsp {

    private String uuid;
    private int code;
    private String msg;
    private long date = System.currentTimeMillis();
    private Object data;

    public RestRsp(){

    }

    public RestRsp(Status status){
        this.msg = status.getDesc();
        this.code = status.getCode();
    }

    public RestRsp(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }
    public RestRsp(String msg, Status status) {
        this.msg = msg;
        this.code = status.getCode();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }
}
